﻿@using Microsoft.AspNet.Identity
@model Scorpicore.MVC.Models.ManageUserViewModel

<h2 class="legend-title">@User.Identity.GetUserName()</h2>


<p><i class="icon-upload"></i><a href="/Account/UploadAvatar"> Качи профилна снимка</a></p>


@using (Html.BeginForm("Manage", "Account"))
{ 
    @Html.AntiForgeryToken()  
    <fieldset class="form-horizontal">
        <h4 class="legend-title">Промяна на парола</h4>
        @Html.ValidationSummary()

        <div class="control-group">
            @Html.LabelFor(m => m.OldPassword, new { @class = "control-label" })
            <div class="controls">
                @Html.PasswordFor(m => m.OldPassword)
            </div>
        </div>
        <div class="control-group">
            @Html.LabelFor(m => m.NewPassword, new { @class = "control-label" })
            <div class="controls">
                @Html.PasswordFor(m => m.NewPassword)
            </div>
        </div>
        <div class="control-group">
            @Html.LabelFor(m => m.ConfirmPassword, new { @class = "control-label" })
            <div class="controls">
                @Html.PasswordFor(m => m.ConfirmPassword)
            </div>
        </div>

        <div class="form-actions no-color">
            <input type="submit" value="Промени парола" class="btn" />
        </div>
    </fieldset>
}
